/**
 * 查询对象类型
 */
export interface FlowQuery extends PageQuery {
  title?: string;
  is_hid?: number;
}

export interface FlowOptions {
  value?: number;
  label?: string;
}

/**
 * 分页对象
 */
export interface FlowPage {
  id?: number;
  title?: string;
  category_id?: number;
  category_name: string;
  type?: number;
  icon?: string;
  is_hid?: number;
  sort?: number;
  author?: string;
  code?: string;
  created_at?: Date;
}

/**
 * 表单类型
 */
export interface FlowForm {
  id?: number;
  title?: string;
  category_id?: number;
  approval_type?: number;
  type?: number;
  icon?: string;
  is_hid?: number;
  sort?: number;
  author?: string;
  code?: string;
}

export interface FlowUserForm {
  flow_id?: number;
  data: UserForm[];
}

export interface UserForm {
  type?: number;
  user_ids?: [];
  user_type: number;
  approval_type?: number;
}
